<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>用户注册</title>
<meta name="viewport" content="width=device-width,initial-scale=1.0">
<link href="/ksp/layui/css/layui.css" rel="stylesheet">
<style type="text/css">
.body {
	background-color: blue;
	background-size: cover;
	width: 100%;
}

.centerdiv {
	position: absolute;
	top: 30%;
	left: 40%;
	-webkit-transform: translate(-50%, -50%);
	-moz-transform: translate(-50%, -50%);
	-ms-transform: translate(-50%, -50%);
	-o-transform: translate(-50%, -50%);
	transform: translate(-50%, -50%);
	background-color: aliceblue;
}
</style>

<script type="text/javascript" src="/ksp/js/jquery.min.js"></script>
<script type="text/javascript">
	$(function() {
		//alert("10");
		$("#bok").click(function() {
			var usrData = $("#frmUsrlgn").serializeArray();
			$.ajax({
				url : "/ksp/usr/KSPU02",
				type : "post",
				dataType : "json",
				data : usrData,
				success : function(data) {
					alert(data.msg);
					if ("200" == data.cod) {
						window.location.href = "/ksp/p/usr/tsklst";
					} else {
						//window.locations.href = "/index";
					}
				}
			})
		});
	})
</script>

</head>
<body style="background-color: azure;">
	<div class="centerdiv" style="background-color: #fff; padding: 20px;">
		<div>
			<h2>用户注册</h2>
		</div>
		<hr>
		<div style="width: 300px;">
			<form id="frmUsrReg" style="margin: 0 auto;">
				账号：
				<div class="layui-inline">
					<input class="layui-input" name="KSP_OAM" lay-verify="required"
						placeholder="请输入账号" autocomplete="off" value="13266">
				</div>
				<br> 密码：
				<div class="layui-inline">
					<input class="layui-input" type="password" name="USR_PWD"
						lay-verify="required" placeholder="请输入密码" autocomplete="off"
						value="888">
				</div>
				<br> 姓名：
				<div class="layui-inline">
					<input class="layui-input" name="USR_NAM" lay-verify="required"
						placeholder="请输入姓名" autocomplete="off" value="李四">
				</div>
				<br> 类型：
				<div class="layui-inline">
					<input class="layui-input" name="USR_TYP" lay-verify="required"
						placeholder="请输入类型" autocomplete="off" value="C">
				</div>
				<hr>
				<div>
					<input type="button" class="layui-btn" id="bok" style="width: 100%"
						value="注册">
				</div>
			</form>
			<div>
				<a href="/ksp/index">返回首页</a>
			</div>
		</div>
	</div>
</body>

</html>